package myschool.myshchool15.mystudent;

import java.util.Scanner;

/**
 * do-while
 */
public class DoWhile {
    public static void main(String[] args){
        String qualified;
        Scanner input = new Scanner(System.in);
        do{
            System.out.println("上机编写程序");
            System.out.println("合格了吗？（y/n）");
            qualified = input.next();

        }while(!qualified.equals("y"));
        System.out.println("恭喜您通过了测试");


    }
}
